<template>
  <div class="page-container">
    <el-card shadow="never" class="search-form-card">
      <el-form class="search-form" inline label-width="75px" label-suffix=":">
        <el-row :gutter="50">
          <el-col :span="8">
            <el-form-item label="状态">
              <el-select v-model="searchParams.status" placeholder="请选择">
                <el-option
                  v-for="item in statusOptions"
                  :key="item.id"
                  :label="item.name"
                  :value="item.id"
                />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="申请时间">
              <el-date-picker
                v-model="searchParams.date"
                type="datetimerange"
                range-separator="至"
                start-placeholder="开始时间"
                end-placeholder="结束时间"
              />
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="提供单位">
              <el-select v-model="searchParams.type" placeholder="请选择">
                <el-option
                  v-for="item in statusOptions"
                  :key="item.id"
                  :label="item.name"
                  :value="item.id"
                />
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item label="资源名称">
              <el-input v-model="searchParams.name" placeholder="请输入关键字" />
            </el-form-item>
          </el-col>
          <el-col :span="8">
            <el-form-item>
              <el-button type="primary">查询</el-button>
              <el-button>重置</el-button>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </el-card>
    <el-button type="primary" style="margin-bottom: 22px">批量审核</el-button>
    <el-card shadow="never">
      <el-tabs v-model="activeName">
        <el-tab-pane label="数据目录" name="catalog">
          <catalog />
        </el-tab-pane>
        <el-tab-pane label="数据接口" name="interfaceC">
          <interfaceC />
        </el-tab-pane>
      </el-tabs>
    </el-card>
  </div>
</template>

<script>
import catalog from './catalog'
import interfaceC from './interface'
export default {
  components: {
    catalog,
    interfaceC
  },
  data() {
    return {
      searchParams: {
        date: [],
        status: ''
      },
      statusOptions: [],
      activeName: 'catalog'
    }
  }

}
</script>

<style lang="scss" scoped>
.page-container {
  height: 100%;
}
</style>
